import axios from "@/utils/axios";

// 分页获取用户列表
export const getTableData = (params) =>
  axios({ url: "/admin/user/page", method: "get", params });

// 新增用户
export const addUser = (data) => axios.post("/admin/user", data);

// 编辑用户
export const updateUser = (data) => axios.put("/admin/user", data);

// 删除
export const delUser = (id) => axios.delete(`/admin/user/${id}`);
